export default (self) =>  [

  {
    title: '医院',
    name: 'hospitalId',
    searchItem: {
      rules: [
        {
          required: true,
          message: '请选择医院'
        }
      ],
      width: 150,
      showSearch: true,
      type: 'select',
      loading: self.getAll("hospital").loadingAll,  // 加载状态
      dict: self.getAll("hospital").dict,
      onDropdownVisibleChange: (visible) => {
        if (visible) {
          self.dispatch({
            type: `hospital/getAll`,
          })
        }
      },

      filterOption: (input, option) => {
        return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
      },
    },
  },

  {
    title: '质控品',
    name: 'qualityControlId',
    searchItem: {
      rules: [
        {
          required: true,
          message: '请选择质控品'
        }
      ],
      width: 150,
      showSearch: true,
      type: 'select',
      loading: self.getAll("qualityList").loadingAll,  // 加载状态
      dict: self.getAll("qualityList").dict,
      onDropdownVisibleChange: (visible) => {
        if (visible) {
          self.dispatch({
            type: `qualityList/getAll`,
          })
        }
      },

      filterOption: (input, option) => {
        return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
      },
    }
  },
  {
    title: '选择时间',
    name: 'time',
    searchItem: {
      type: 'date~',
      width: 300,
      placeholder: ['这是开始时间', '这是结束时间'],
      format: 'YYYY-MM-DD'
    }
  },
]
